$OpenBSD: patch-base_password_py,v 1.5 2015/02/05 17:34:33 ajacoutot Exp $
--- base/password.py.orig	Thu Jan 29 13:20:35 2015
+++ base/password.py	Thu Feb  5 14:28:00 2015
@@ -23,6 +23,7 @@ import os
 import getpass
 import time
 import string
+import platform
 
 from . import utils, tui
 from .g import *
@@ -55,6 +56,7 @@ AUTH_TYPES ={'mepis':'su',
              'gos':'sudo',
              'boss':'su',
              'lfs':'su',
+             'openbsd':'su',
              }
 
 
@@ -86,9 +88,12 @@ def get_distro_name():
         name.close()
 
     if not os_name:
-       name = os.popen("cat /etc/issue | awk '{print $1}' | head -n 1")
+       name = os.popen("cat /etc/issue 2>/dev/null | awk '{print $1}' | head -n 1")
        os_name = name.read().strip()
        name.close()
+
+    if not os_name:
+        os_name = platform.system()
 
     os_name = os_name.lower()
     if "redhatenterprise" in os_name:
